package com.ruoyi.keep.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 团课预约管理对象 reservation
 *
 * @author wangziyang
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName
public class Reservation {


    /**
     * 主键id
     */
    @TableId
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private Long orderId;

    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reservationTime;

    /**
     * 预约状态（0已签到、1未签到、2退款）
     */
    @Excel(name = "预约状态", readConverterExp = "0=已签到、1未签到、2退款")
    private Integer reservationStatus;

    /**
     * 预约备注
     */
    @Excel(name = "预约备注")
    private String reservationNote;

    /**
     * 逻辑删除字段
     */
    @TableLogic
    private Integer del;
    //用户名称
    @TableField(exist = false)
    private String nickName;
    //    订单金额
    @TableField(exist = false)
    private Double orderPrice;
    //    支付方式
    @TableField(exist = false)
    private Integer orderPayment;
    //    订单状态
    @TableField(exist = false)
    private Integer orderStatus;
    /**
     * 更新时间
     */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderUpdateTime;
    //    课程名称
    @TableField(exist = false)
    private String className;
    //    教练名称
    @TableField(exist = false)
    private String coachName;
    //    订单类型
    @TableField(exist = false)
    private Integer orderType;
    //    课程照片
    @TableField(exist = false)
    private String image;
}
